#define  _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<string.h>

int main()
{
    char a[21] = { 0 }, b[21] = { 0 };
    scanf("%s %s", a, b);
    if (strcmp(a, "dotcpp") == 0 && strcmp(b, "123456") == 0)
        printf("Login Successful!\n");
    else
        printf("Login Fails!\n");
    return 0;
}